#define _CRT_SECURE_NO_WARNINGS 1
#include "Link.h"

void test1() {
	LinkNode* phead = linkInit();

	linkPushBack(phead, 1);
	linkPushBack(phead, 2);
	linkPushBack(phead, 3);
	linkPushBack(phead, 4);
	linkPushBack(phead, 5);
	linkPushBack(phead, 9);

	linkPopBack(phead);

	linkPushFront(phead, 0);

	linkPopFront(phead);

	linkInsert(phead, 1, 99);

	linkErase(phead, 3);
	linkErase(phead, 1);

	linkPrint(phead);

	linkDestory(phead);
	phead = NULL;
}

int main() {
	test1();
	return 0;
}